package po

import "time"

type Instance struct {
	GUID             string      `xorm:"guid"`
	Name             string      `xorm:"name"`
	UserID           string      `xorm:"user_id"`
	ConfigID         string      `xorm:"config_id"`
	Label            string      `xorm:"label"`
	Version          string      `xorm:"version"`
	Describe         string      `xorm:"describe"`
	Platform         string      `xorm:"platform"`
	Origin           string      `xorm:"origin"`
	Kind             string      `xorm:"kind"`
	DetailRepoKey    string      `xorm:"detail_repo_key"`
	DetailRepoValue  interface{} `xorm:"-"`
	RunTimeRepoKey   string      `xorm:"runtime_repo_key"`
	RunTimeRepoValue interface{} `xorm:"-"`
	Created          time.Time   `xorm:"create_time"`
	Updated          time.Time   `xorm:"update_time"`
}

func (obj *Instance) TableName() string {
	return "instance"
}
